<!DOCTYPE html>
<html>

<head>
	<meta charset="UTF-8">
	<title>批发券</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no" />
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link rel="stylesheet" href="../css/base.css" />
	<link rel="stylesheet" href="../css/add_bankCard.css" />
	<link rel="stylesheet" href="../css/personal/mobileSelect.css">
	<script src="../js/jquery-2.2.3.min.js"></script>
	<script type="text/javascript" src="../js/rem.js"></script>
	<script src="../js/person/mobileSelect.min.js"></script>
	<script src="../js/person/city.js"></script>
	<script src="../js/common.js"></script>
	<style>
		.add_bank_ul_li{
			overflow: hidden;
			border-top: 1px solid #e3e3e3;
		}
		.con_yhq_d{
			width: 70%;
			height: 1.5rem;
			margin: 0.3rem auto;
			background: red;
			border-radius: 0.2rem;
			text-align: center;
			color: #ffffff;
			padding-top: 0.26rem;
		}
		.con_yhq_d h2{
			color: #ffffff;
			font-size:0.35rem;
		}
		.con_yhq_d p{
			color: #ffffff;
			font-size: 0.25rem;
		}
		.con_yhq_d h6{
			color: #ffffff;
			font-size: 0.15rem;
		}
		.con_yhq{
			margin-top: 0.7rem;
		}
		</style>
</head>

<body>
	<div class="header">
		<a href="javascript:history.back(-1)"><img src="../img/g_next.png" alt="" /></a>
		批发券
	</div>
	<div class="con_yhq">

	</div>

	<script src="../js/picker.min.js"></script>
	<script type="text/javascript" src="../js/city.js"></script>
	<script type="text/javascript" src="../js/index.js"></script>
</body>

<script>

	$.ajax({
		url: SURL + '/jfd/rushRecord/getRushRecord',
        type:'get',
        data:{
            userId: localStorage.getItem('userId')
        },
        success:function(res) {
			console.log(res.rushRecords.coupon);
            var list = res.rushRecords;
            list.forEach(element => {
                $('.con_yhq').append(`
					<div class="con_yhq_d">
						<h2>批发券</h2>
						<p><span>${element.coupon}</span>元</p>
						<h6>${element.createTime}</h6>
					</div>
					`)
            });

        }
	})

</script>

</html>
